﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true"
    CodeBehind="MyPwd.aspx.cs" Inherits="School.UserCentents.MyPwd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <script>
      function Check() {
          if (document.getElementById("ContentPlaceHolder1_oldpwd").value == "") {
              alert('原密码不能为空');
              return false;
          }

          if (document.getElementById("ContentPlaceHolder1_newpwd1").value == "") {
              alert('新密码不能为空');
              return false;
          }
          if (document.getElementById("ContentPlaceHolder1_newpwd2").value == "") {
              alert('新密码不能为空');
              return false;
          }

          if (document.getElementById("ContentPlaceHolder1_newpwd1").value != document.getElementById("ContentPlaceHolder1_newpwd2").value) {
              alert('两次输入的密码必须一致');
              return false;
          }
          return true;
      }
    </script>
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_qz_art.gif"><span id="itopic">修改密码</span>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBodyShow">
            <table cellspacing="0" cellpadding="0" id="Changepwd" class="Setting_Content">
                <tbody>
                    <tr>
                        <td class="LabelTitle">
                            <span id="s1">原密码：</span>
                        </td>
                        <td class="LabelShow" id="td1">
                            <input type="password" size="30" maxlength="30" class="InputTxt" id="oldpwd" value="" runat="server" autocomplete="off"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <span id="s2">新密码：</span>
                        </td>
                        <td id="td2">
                            <input type="password" size="30" maxlength="30" class="InputTxt" id="newpwd1" value="" runat="server"  autocomplete="off"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                            <span id="s3">重复密码：</span>
                        </td>
                        <td id="td3">
                            <input type="password" size="30" maxlength="30" class="InputTxt" id="newpwd2" value="" runat="server"  autocomplete="off"/> 
                        </td>
                    </tr>
                    <tr>
                        <td class="title">
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="提交更改" CssClass="SubmitBtn"  OnClientClick="return Check()"
                                onclick="Button1_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- 右侧结束 -->
    </div>
</asp:Content>
